import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    redirect:'/site',
    component: ()=>import('../views/Home.vue'),
    children:[
      {
        path: '/site',
        name: 'site',
        component: ()=>import('../components/siteAside.vue'),
        children:[
          {
            path: '/service',
            name: 'service',
            component: ()=>import('../views/service.vue'),
          }
        ]
      },
      {
        path: '/vip',
        name: 'vip',
        component: ()=>import('../components/vipAside.vue'),
        children:[
         
        ]
      },
    ]
  },
  {
    path: '/myheader',
    name: 'myheader',
    component: ()=>import('../components/myheader.vue'),
  }
  
      
]

const router = new VueRouter({
  routes
})

export default router
